<?php if (isset($_SESSION[LOGIN_ERROR])) { ?>
<div class="error">
  <div><?php echo $_SESSION[LOGIN_ERROR]; ?></div>
</div>
<?php } ?>

<div>&nbsp;</div>
<form id="login" action="<?php echo "firewall.php"; ?>" method="post">
  <input type="hidden" name="d" value="<?php echo $dir; ?>"></input>
  <input type="hidden" name="f" value="<?php echo $file; ?>"></input>
  <input type="hidden" name="m" value="login"></input>
  <h1 id="ff-proof" class="ribbon">&nbsp;</h1>
  <input type="hidden" name="fail_url" value="<?php echo Utils::get_url(); ?>"></input>
  <input type="hidden" name="succ_url" value="<?php echo ($url ? $url : INSTALL_HOMEPAGE); ?>"></input>
  <fieldset id="inputs">
    <input id="username" name="user" type="text" onblur="if(this.value==&#39;&#39;)this.value=&#39;Username&#39;;" onfocus="if(this.value==&#39;Username&#39;)this.value=&#39;&#39;;" value="Username"></input>
    <input id="password" name="pass" type="password" onblur="if(this.value==&#39;&#39;)this.value=&#39;Password&#39;;" onfocus="if(this.value==&#39;Password&#39;)this.value=&#39;&#39;;" value="Password"></input>
  </fieldset>
  <fieldset id="actions">
    <input type="submit" id="submit" value="Sign In"></input>
  </fieldset>
</form>